package com.cndw.kungfu.model;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.cndw.kungfu.core.CacheCenter;
import com.cndw.kungfu.model.business.IBusinessServer;
import com.cndw.kungfu.model.disciple.DiscipleServer;
import com.cndw.kungfu.model.general.GeneralServer;
import com.cndw.kungfu.model.goods.GoodsServer;
import com.cndw.kungfu.model.main.CongfigServer;
import com.cndw.kungfu.model.main.DataServer;
import com.cndw.kungfu.model.main.TcpServer;
import com.cndw.kungfu.model.main.TimerServer;
import com.cndw.kungfu.model.message.MessageServer;
import com.cndw.kungfu.model.operation.OperationServer;
import com.cndw.kungfu.model.pet.PetServer;
import com.cndw.kungfu.model.player.PlayerServer;
import com.cndw.kungfu.model.queue.QueueServer;
import com.cndw.kungfu.model.scene.SceneServer;
import com.cndw.kungfu.model.skill.SkillServer;
import com.cndw.kungfu.model.sys.SyncServer;
import com.cndw.kungfu.model.sys.SysServer;
import com.cndw.kungfu.model.task.TaskServer;
import com.cndw.kungfu.model.undercity.UndercityServer;
import com.cndw.kungfu.model.union.UnionServer;

/**
 * 获取model server 的静态类
 * 
 * @author fantadust
 * @date 2011-4-28 下午01:10:33
 */
@Component
public class Context {

	private static TimerServer timerServer;
	private static TcpServer tcpServer;
	private static DataServer dataServer;
	private static TaskServer taskServer;
	private static PlayerServer playerServer;
	private static SceneServer sceneServer;
	private static SkillServer skillServer;
	private static GoodsServer goodsServer;
	private static MessageServer messageServer;
	private static CongfigServer congfigServer;
	private static UnionServer unionServer;
	private static CacheCenter cacheCenter;
	private static DiscipleServer discipleServer;
	private static GeneralServer generalServer;
	private static QueueServer queueServer;
	private static UndercityServer undercityServer;
	private static SysServer sysServer;
	private static SyncServer syncServer;
	private static PetServer petServer;
	private static IBusinessServer businessServer;
	private static OperationServer operationServer;


	@Resource
	public void setTimerServer(TimerServer timerServer) {
		Context.timerServer = timerServer;
	}

	@Resource
	public void setTcpServer(TcpServer tcpServer) {
		Context.tcpServer = tcpServer;
	}

	@Resource
	public void setDataServer(DataServer dataServer) {
		Context.dataServer = dataServer;
	}

	@Resource
	public void setTaskServer(TaskServer taskServer) {
		Context.taskServer = taskServer;
	}

	@Resource
	public void setPlayerServer(PlayerServer playerServer) {
		Context.playerServer = playerServer;
	}

	@Resource
	public void setSceneServer(SceneServer sceneServer) {
		Context.sceneServer = sceneServer;
	}

	@Resource
	public void setSkillServer(SkillServer skillServer) {
		Context.skillServer = skillServer;
	}

	@Resource
	public void setGoodsServer(GoodsServer goodsServer) {
		Context.goodsServer = goodsServer;
	}

	@Resource
	public void setMessageServer(MessageServer messageServer) {
		Context.messageServer = messageServer;
	}

	@Resource
	public void setCongfigServer(CongfigServer congfigServer) {
		Context.congfigServer = congfigServer;
	}

	@Resource
	public void setUnionServer(UnionServer unionServer) {
		Context.unionServer = unionServer;
	}

	@Resource
	public void setCacheCenter(CacheCenter cacheCenter) {
		Context.cacheCenter = cacheCenter;
	}

	@Resource
	public void setDiscipleServer(DiscipleServer discipleServer) {
		Context.discipleServer = discipleServer;
	}

	@Resource
	public void setGeneralServer(GeneralServer generalServer) {
		Context.generalServer = generalServer;
	}

	@Resource
	public void setQueueServer(QueueServer queueServer) {
		Context.queueServer = queueServer;
	}

	@Resource
	public void setUndercityServer(UndercityServer undercityServer) {
		Context.undercityServer = undercityServer;
	}


	@Resource
	public void setSysServer(SysServer sysServer) {
		Context.sysServer = sysServer;
	}

	@Resource
	public void setSyncServer(SyncServer syncServer) {
		Context.syncServer = syncServer;
	}

	@Resource
	public void setPetServer(PetServer petServer) {
		Context.petServer = petServer;
	}	
	@Resource
	public void setBusinessServer(IBusinessServer businessServer) {
		Context.businessServer = businessServer;
	}
	@Resource
	public void setOperationServer(OperationServer operationServer) {
		Context.operationServer = operationServer;
	}
	
	/**
	 * ===============================================
	 * ===============================================
	 * 
	 * 隔一下
	 * 
	 * ===============================================
	 * ===============================================
	 */

	public static TimerServer getTimerServer() {
		return timerServer;
	}

	public static TcpServer getTcpServer() {
		return tcpServer;
	}

	public static DataServer getDataServer() {
		return dataServer;
	}

	public static TaskServer getTaskServer() {
		return taskServer;
	}

	public static PlayerServer getPlayerServer() {
		return playerServer;
	}

	public static SceneServer getSceneServer() {
		return sceneServer;
	}

	public static SkillServer getSkillServer() {
		return skillServer;
	}

	public static GoodsServer getGoodsServer() {
		return goodsServer;
	}

	public static MessageServer getMessageServer() {
		return messageServer;
	}

	public static CongfigServer getCongfigServer() {
		return congfigServer;
	}

	public static UnionServer getUnionServer() {
		return unionServer;
	}

	public static CacheCenter getCacheCenter() {
		return cacheCenter;
	}

	public static DiscipleServer getDiscipleServer() {
		return discipleServer;
	}

	public static GeneralServer getGeneralServer() {
		return generalServer;
	}

	public static QueueServer getQueueServer() {
		return queueServer;
	}

	public static UndercityServer getUndercityServer() {
		return undercityServer;
	}

	public static SysServer getSysServer() {
		return sysServer;
	}

	public static SyncServer getSyncServer() {
		return syncServer;
	}

	public static PetServer getPetServer(){
		return petServer;
	}
	
	public static IBusinessServer getBusinessServer() {
		return businessServer;
	}
	
	public static OperationServer getOperationServer() {
		return operationServer;
	}	
	
}
